package com.demo.aop.service.impl;

import org.springframework.stereotype.Component;

import com.demo.aop.service.Calculator;

@Component
//@Service("calculator")
public class CalculatorImp implements Calculator {

	@Override
	public int add(int i, int j) {
		int result = i + j;
		return result;

	}

	@Override
	public int min(int i, int j) {
		int result = i - j;
		return result;
	}

	@Override
	public int mul(int i, int j) {
		int result = i * j;
		return result;
	}

	@Override
	public int div(int i, int j) {
		int result = i / j;
		return result;
	}

	@Override
	public Long testPointCut(int i, int j) {

		return (long) (i * j * 100000000);
	}

}
